package y23.Jun;

import java.util.Random;
import java.util.Scanner;

class guessNum {
    public boolean guessNumber(int num,int guessNum1){
        if(guessNum1 == num){
            System.out.println("猜对了");
            return false;
        } else if (guessNum1 > num) {
            System.out.println("猜大了");
            return true;
        }else {
            System.out.println("猜小了");
            return true;
        }
    }
}
class randomNum{
    int num;
    public void randomnum1(int num){
        Random random = new Random();
        num = random.nextInt(100);
        this.num=num;
    }
}
public class Test18 {
    public static void main(String[] args) {
        randomNum randomNum1 = new randomNum();
        Scanner sc = new Scanner(System.in);
        guessNum guessNum = new guessNum();
        while(guessNum.guessNumber(randomNum1.num, sc.nextInt())){
        }
    }

}
